//
//  CFHttpTools.h
//  WealthElves
//
//  Created by Wealthwiz on 2017/4/26.
//  Copyright © 2017年 Wealthwiz. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 请求成功block
 */
typedef void (^requestSuccessBlock)(id responseObj);

/**
 请求失败block
 */
typedef void (^requestFailureBlock) (NSError *error);

@interface CFHttpTools : NSObject

/**
 GET请求
 */
+ (void)getRequest:(NSString *)url params:(NSDictionary *)params success:(requestSuccessBlock)successHandler failure:(requestFailureBlock)failureHandler;

/**
 POST请求
 */
+ (void)postRequest:(NSString *)url params:(NSDictionary *)params success:(requestSuccessBlock)successHandler failure:(requestFailureBlock)failureHandler;


@end
